package com.example.crossborderecommerce.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.crossborderecommerce.entity.Admin;
import com.example.crossborderecommerce.entity.PurchaseOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.crossborderecommerce.entity.PurchasePlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Yolanda
 * @since 2024-05-09
 */
@Mapper
public interface PurchaseOrderMapper extends BaseMapper<PurchaseOrder> {
    public List<PurchaseOrder> getPurchaseOrderByPage(Page<PurchaseOrder> page,
                                                    @Param("supplierId") String supplierId,
                                                    @Param("storeId") String storeId,
                                                    @Param("productName") String productName,
                                                    @Param("timeFrom") String timeFrom,
                                                    @Param("timeTo") String timeTo);

    public List<Admin> findAdminsInPurchaseOrder();
}
